Skip to content

Fix #14899: FP invalidPrintfArgType_float with _sprintf_s_l() - #8729

Open
ludviggunne wants to merge 5 commits into
cppcheck-opensource:mainfrom
ludviggunne:14899-sprintf
Open

Fix #14899: FP invalidPrintfArgType_float with _sprintf_s_l() #8729
ludviggunne wants to merge 5 commits into
cppcheck-opensource:mainfrom
ludviggunne:14899-sprintf

Conversation

@ludviggunne

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread test/testio.cpp
@ludviggunne
ludviggunne force-pushed the 14899-sprintf branch 2 times, most recently from a956174 to 72718dd Compare July 15, 2026 14:00
Comment thread test/testio.cpp
Comment thread test/cfg/windows.cpp Outdated
Comment thread lib/checkio.cpp

static int getMaxArgNo(const Library::Function *func)
{
const auto &checks = func->argumentChecks;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you 100% sure that func will never be null here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's checked at the call site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants